package com.googlecode.androidkurskoblenz.jledcube;

import java.awt.Color;
import java.util.Observable;

import javax.media.j3d.TransformGroup;

/**
 * Is a single layer which contains the rows of the cube
 * A layer reprensents the z-Axis
 */
public class LedLayer
{
	private LedRow[] rows;
	@SuppressWarnings("unused")
	private int z;
	
	public LedLayer(int z, int depth, int width, float size, TransformGroup group, Observable cube, Color cubeColor)
	{
		this.rows = new LedRow[width];
		this.z = z;
		for(int y = 0; y < width; y++)
		{
			LedRow row = new LedRow(z, y, depth, size, group, cube, cubeColor);
			row.setPos(z, y);
			this.rows[y] = row;
		}
	}
	
	public void setPos(int z)
	{
		this.z = z;
	}
}
